package com.sub.mapstruct;


import java.util.List;

/**
 * @author Submerge
 * @Since 2022/11/07
 * @Description: 类转换映射接口
 * @param <S> DTO/VO/SO...
 * @param <T> Bean
 */
public interface CoverMapStruct<S,T> {

    /**
     * Target - Source
     * @param t
     * @return
     */
    S coverS(T t);

    /**
     * Source - Target
     * @param s
     * @return
     */
    T coverT(S s);

    /**
     * List<Target> - List<Source>
     * @param tList
     * @return
     */
    List<S> coverListS(List<T> tList);

    /**
     * List<Source> - List<Target>
     * @param sList
     * @return
     */
    List<T> coverListT(List<S> sList);

}
